Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes DOCS-1654
Problem
Nothing measures whether the S3 authentication guide leads an agent to the right credential in the right place. An S3 client reaches Storage with the project's S3 keys, which skip every access rule, or as a signed-in person, which keeps them. A desktop app that ships with the S3 keys lets anyone read everyone's files. A signed-in client built with the wrong key gets
SignatureDoesNotMatch.Evidence:
SignatureDoesNotMatchwith JWT session tokens. Only the legacy anon key works.x-upsertrejected with a misleading RLS error storage#1241: uploads with upsert are refused with a misleading row level security error.Confirming the claim: The ticket's claim, valid keys accepted and others refused, holds locally on the storage-api the pinned CLI starts. The S3 keys get full access. The per-person credential works only as
stub, the legacy anon key and the user's JWT. The publishable key, the secret key and the service role key as the secret all getSignatureDoesNotMatch. The eval narrows the claim to which credential goes where.No existing eval uses the S3 protocol.
build-docs-008andbuild-docs-023cover storage policies and buckets through the REST API.Sources reached: Linear, Slack, supabase/storage, supabase/supabase and agent-skills issues. Not reached: Hex, Supacademy.
Changes
Adds
build-docs-038-storage-s3-authentication. A notes app has a desktop client that ships to customers and a nightly backup job on its own server, and both use the AWS S3 SDK. Each person may only see and change their own notes, even with a tampered desktop app. The backup job reads everything. The seed fixes the two client factories inSTORAGE.md, a private bucket with no policies, and adesktop/.envthat holds only the URL and the publishable key.The scorer installs the seed's locked dependencies with
npm ci, copiesdesktop/alone to a fresh directory, and runs it with only its own.env. Then it probes over S3 as two signed-in people and as the backup job.Checks:
Expected signal: Over S3, every upload is an upsert. A first upload needs a read rule as well as an insert rule, and an overwrite also needs an update rule. The guide names no policies, so a solution built from it fails the sync check. An agent that uses the publishable key already in
desktop/.envfails the own-notes control.Pinned behavior: Refusing the publishable key is what the pinned storage-api does. When Storage accepts the new keys, that agent turns green with no docs change. The README says to read a change after a CLI upgrade that way.
What part of the guide this tests:
stub, anon key, user JWTdesktop/.env~/.aws/credentials, direct storage hostname, self-hosted tenantVerification
pnpm exec biome check evals/docs/build-docs-038-storage-s3-authenticationpasses.pnpm --filter @supabase-evals/framework typecheckpasses.pnpm eval:dry -- --suite docs --eval build-docs-038-storage-s3-authenticationplans one pair oncodex-gpt-6-luna-no-skills.codex-gpt-6-luna-no-skillsin therun-evals-changedrun. All three passed all ten checks, including the guide read and the install. A full-marks pass does not show the page carried the run. Braintrust run.For new or changed evals (see Submitting evals for review):
run-evals-changedlabel or the Refresh eval results workflow (suite: regressionfor framework changes), and linked the Braintrust run here.